<template>
  <div class="container">
    <i :class="icon" aria-hidden="true" id="icon"></i>
    <span v-text="title" class="title"></span>
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      require: true,
    },
    icon: {
      require: false,
    },
  },
};
</script>

<style scoped>
.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.container img {
  width: 3%;
}
.container span {
  margin-left: 8px;
}
i,
span {
  display: block;
  text-align: center;
}
</style>
